package customerEnter.Frame.JDBCDao.daoFrame;

import customerEnter.Frame.DaoDataTransmission.DaoFrameDMLBaseTransmission;
import customerEnter.Frame.JDBCDao.DaoFrame;
import customerEnter.Frame.JDBCDao.Interface.DMLParameterSettingInterface;
import customerEnter.Frame.JDBCDao.Interface.DaoFrameInterface;
import customerEnter.Frame.JDBCDao.Interface.ParametersResultInterface;

@SuppressWarnings({ "rawtypes", "hiding" })
public class DaoFrameDMLTransImpl<T, K> {

	DaoFrameInterface				daoFrameInterface				= new DaoFrame();
	DMLParameterSettingInterface	dmlParameterSettingInterface	= new DMLParameterSettingParameterImpl();

	public ParametersResultInterface findConditionQueryPageResult(
			DaoFrameDMLBaseTransmission daoFrameDMLBaseTransmission) {
		return daoFrameInterface.DMLTransmission(daoFrameDMLBaseTransmission);
	}

	@SuppressWarnings("unchecked")
	public <K> K ExecuteConditionResultObject(DaoFrameDMLBaseTransmission daoFrameDMLBaseTransmission) {

		return (K) findConditionQueryPageResult(daoFrameDMLBaseTransmission).getpObject();
	}

}
